package cn.codenest.springboot.mongo.dao;

import cn.codenest.springboot.mongo.entity.UserEntity;

/**
* @ClassName: ItemGroupDAO
* @author: Zhihui.Liu
* @date: 2021/11/04 16:26
* @Description:
*/
public interface ItemGroupDAO {
    /**
     * @author: Zhihui.Liu
     * @datm: 2021/11/16 17:35
     * @Description: 向實體的集合字段中增加元素
     * @param:
     * @return:
     *
     */
    long addUserOfGroup(String id, UserEntity userEntity);

    /**
     * @author: Zhihui.Liu
     * @datm: 2021/11/16 17:36
     * @Description: 更新集合字段中的元素
     * @param:
     * @return:
     *
     */
    long updateUserOfGroup(String id, UserEntity userEntity);

    /**
     * @author: Zhihui.Liu
     * @datm: 2021/11/16 17:38
     * @Description: 刪除集合對象中的元素
     * @param:
     * @return:
     *
     */
    long deleteUsersOfGroup(String id, UserEntity userEntity);
}
